#include "aux_menu.h"

const int ajuste = CHAR_HEIGHT >> 1;

void draw_rect_modo(char color, char* base)
{
	draw_rect(24*CHAR_WIDTH, 5*CHAR_HEIGHT - ajuste, (24+30)*CHAR_WIDTH, 9*CHAR_HEIGHT, color, base);
	draw_line(24*CHAR_WIDTH, 6*CHAR_HEIGHT + ajuste/2, (24+30)*CHAR_WIDTH, 6*CHAR_HEIGHT + ajuste/2, color, base);
}

void draw_rect_temporizado_focus(char color, char* base)
{
	draw_rect(25*CHAR_WIDTH - 1, 7*CHAR_HEIGHT - 1 - ajuste, (25+13)*CHAR_WIDTH + 1, 9*CHAR_HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_temporizado_selected(char color, char* base)
{
	draw_rect(25*CHAR_WIDTH, 7*CHAR_HEIGHT - ajuste, (25+13)*CHAR_WIDTH, 9*CHAR_HEIGHT - ajuste, color, base);
}

void draw_rect_objectivos_focus(char color, char* base)
{
	draw_rect(41*CHAR_WIDTH - 1, 7*CHAR_HEIGHT - 1 - ajuste, (41+12)*CHAR_WIDTH + 1, 9*CHAR_HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_objectivos_selected(char color, char* base)
{
	draw_rect(41*CHAR_WIDTH, 7*CHAR_HEIGHT - ajuste, (41+12)*CHAR_WIDTH, 9*CHAR_HEIGHT - ajuste, color, base);
}


void draw_rect_dificuldade(char color, char* base)
{
	draw_rect(24*CHAR_WIDTH, 11*CHAR_HEIGHT - ajuste, (24+30)*CHAR_WIDTH, 15*CHAR_HEIGHT, color, base);
	draw_line(24*CHAR_WIDTH, 12*CHAR_HEIGHT + ajuste/2, (24+30)*CHAR_WIDTH, 12*CHAR_HEIGHT + ajuste/2, color, base);
}

void draw_rect_facil_focus(char color, char* base)
{
	draw_rect(25*CHAR_WIDTH - 1, 13*CHAR_HEIGHT - 1 - ajuste, (25+7)*CHAR_WIDTH - 1, 15*CHAR_HEIGHT - 1 - ajuste, color, base);
}

void draw_rect_facil_selected(char color, char* base)
{
	draw_rect(25*CHAR_WIDTH, 13*CHAR_HEIGHT - ajuste, (25+7)*CHAR_WIDTH, 15*CHAR_HEIGHT - ajuste, color, base);
}

void draw_rect_medio_focus(char color, char* base)
{
	draw_rect(35*CHAR_WIDTH - 1, 13*CHAR_HEIGHT - 1 - ajuste, (35+7)*CHAR_WIDTH + 1, 15*CHAR_HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_medio_selected(char color, char* base)
{
	draw_rect(35*CHAR_WIDTH, 13*CHAR_HEIGHT - ajuste, (35+7)*CHAR_WIDTH, 15*CHAR_HEIGHT - ajuste, color, base);
}

void draw_rect_dificil_focus(char color, char* base)
{
	draw_rect(44*CHAR_WIDTH - 1, 13*CHAR_HEIGHT - 1 - ajuste, (44+9)*CHAR_WIDTH + 1, 15*CHAR_HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_dificil_selected(char color, char* base)
{
	draw_rect(44*CHAR_WIDTH, 13*CHAR_HEIGHT - ajuste, (44+9)*CHAR_WIDTH, 15*CHAR_HEIGHT - ajuste, color, base);
}


void draw_rect_bonus(char color, char* base)
{
	draw_rect(24*CHAR_WIDTH, 17*CHAR_HEIGHT - ajuste, (24+30)*CHAR_WIDTH, 21*CHAR_HEIGHT, color, base);
	draw_line(24*CHAR_WIDTH, 18*CHAR_HEIGHT + ajuste/2, (24+30)*CHAR_WIDTH, 18*CHAR_HEIGHT + ajuste/2, color, base);
}

void draw_rect_activados_focus(char color, char* base)
{
	draw_rect(25*CHAR_WIDTH - 1, 19*CHAR_HEIGHT - 1 - ajuste, (25+11)*CHAR_WIDTH + 1, 21*CHAR_HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_activados_selected(char color, char* base)
{
	draw_rect(25*CHAR_WIDTH, 19*CHAR_HEIGHT - ajuste, (25+11)*CHAR_WIDTH, 21*CHAR_HEIGHT - ajuste, color, base);
}

void draw_rect_desactivados_focus(char color, char* base)
{
	draw_rect(39*CHAR_WIDTH - 1, 19*CHAR_HEIGHT - 1 - ajuste, (39+14)*CHAR_WIDTH + 1, 21*CHAR_HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_desactivados_selected(char color, char* base)
{
	draw_rect(39*CHAR_WIDTH, 19*CHAR_HEIGHT - ajuste, (39+14)*CHAR_WIDTH, 21*CHAR_HEIGHT - ajuste, color, base);
}


void draw_rect_jogar_sair(char color, char* base)
{
	draw_rect(27*CHAR_WIDTH, 24*CHAR_HEIGHT - ajuste, (27+23)*CHAR_WIDTH, 28*CHAR_HEIGHT - ajuste, color, base);
}

void draw_rect_jogar_focus(char color, char* base)
{
	draw_rect(29*CHAR_WIDTH - 1, 25*CHAR_HEIGHT - 1 - ajuste, (29+7)*CHAR_WIDTH + 1, 27*CHAR_HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_jogar(char color, char* base)
{
	draw_rect(29*CHAR_WIDTH, 25*CHAR_HEIGHT - ajuste, (29+7)*CHAR_WIDTH, 27*CHAR_HEIGHT - ajuste, color, base);
}

void draw_rect_sair_focus(char color, char* base)
{
	draw_rect(42*CHAR_WIDTH - 1, 25*CHAR_HEIGHT - 1 - ajuste, (42+6)*CHAR_WIDTH + 1, 27*CHAR_HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_sair(char color, char* base)
{
	draw_rect(42*CHAR_WIDTH, 25*CHAR_HEIGHT - ajuste, (42+6)*CHAR_WIDTH, 27*CHAR_HEIGHT - ajuste, color, base);
}
